import axios from "../utils/axios"
export let getlist = ()=>{
    return (dispatch)=>{
        axios.get("/list").then(res=>{
            dispatch({
                type:"getlist",
                payload:res.data
            })
        })
    }
}
export let getduolist = ()=>{
    return (dispatch)=>{
        axios.get("/list1").then(res=>{
            dispatch({
                type:"getduolist",
                payload:res.data
            })
        })
    }
}
export let radioFn = (id,index)=>{
     return {
         type:"radioFn",
         payload:id,
         index
     }
}
export let checkboxfn = (id,index)=>{
    return {
        type:"checkboxfn",
        payload:id,
        index
    }
}